let arr = [1, 2, 3, 5 ,8 ,6 ,0 ,9 ]

let res = arr.sort()
console.log(res);